package com.ykdl.member.kid.beans;

import java.io.Serializable;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

public class FileBean implements Serializable, IJsonParser{

	/**
	 * "file": {
                "file_url": "http://imgs.ykdllmyr.com/storecards/2014/10/28/9sfWW6VmR9SHjwtNcJbju4.jpeg",
                "file_id": 6465464
            }
	 */
	private static final long serialVersionUID = 1L;
	private String url;
	private String file_path;
	public String getFile_path() {
		return file_path;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getFile_url() {
		return url;
	}
	public int getFile_id() {
		return file_id;
	}
	private int file_id;
	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, FileBean.class);
		}
		return null;
	}

}
